package controllers

import (
	"github.com/astaxie/beego"
	"fmt"
	"beego/testApp/common/user"
	"strconv"
)

type DelAdminController struct {
	beego.Controller
}

func (c *DelAdminController) Get() {

	id := c.GetString("id")

	intid,_ := strconv.Atoi(id)

    user.DelUser(intid)
	
	fmt.Println("del test");
	fmt.Println(id)
	c.Redirect("/admin/userlist",302);
}
